//
//  LWDetailModel.h
//  LWShopItem
//
//  Created by mac on 17/3/31.
//  Copyright © 2017年 LWShop.com. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface LWDetailModel : NSObject



/** 是否请求成功/ 1成功／0失败 */
@property(nonatomic, assign) NSInteger status;

/** 成功或失败原因 */
@property(nonatomic, copy) NSString *msg;

/** 成功后返回的信息 */
@property(nonatomic, copy) NSDictionary *result;


//商品ID
@property (copy,nonatomic)NSString *goods_id;

//商品图片
@property (copy,nonatomic)NSString *original_img;

//商品名称
@property (copy,nonatomic)NSString *goods_name;

//市场价
@property (assign,nonatomic)NSString *market_price;

//现价
@property (assign,nonatomic)NSString *shop_price;


//折扣
@property (assign,nonatomic)NSString *discount;


//图文详情
@property (copy,nonatomic)NSString *goods_content;

/**
 记录自己的数量
 */
@property (assign,nonatomic)NSInteger orderCount;

//记录是否被选中为购买
@property(nonatomic,assign)BOOL isSeleted;


+ (instancetype)detilWtihDict:(NSDictionary *)dict;


@end

/**
 "result": {
 "goods": {
 "goods_id": "170",
 "cat_id": "921",
 "extend_cat_id": "921",
 "goods_sn": "TP0000170",
 "goods_name": "\u73bb\u7483\u74f6\u88c5\u7bb1\u88c5\u81e7\u5f69\u697c\u84dd\u8393\u679c\u6c41",
 "click_count": "3",
 "brand_id": "0",
 "store_count": "800",
 "comment_count": "0",
 "weight": "0",
 "market_price": "80.00",
 "shop_price": "65.00",
 "cost_price": "0.00",
 "keywords": "",
 "goods_remark": "\u84dd\u8393\u679c\u6c41",
 "goods_content": "
 \"\u8be6\u60c5\u9875_01.jpg\"\/<\/p>
 
 \"\u8be6\u60c5\u9875_02.jpg\"\/<\/p>
 
 \"\u8be6\u60c5\u9875_03.jpg\"\/<\/p>
 
 \"\u8be6\u60c5\u9875_04.jpg\"\/<\/p>
 
 \"\u8be6\u60c5\u9875_05.jpg\"\/<\/p>
 
 \"\u8be6\u60c5\u9875_06.jpg\"\/<\/p>
 
 \"\u8be6\u60c5\u9875_07.jpg\"\/<\/p>
 
 \"\u8be6\u60c5\u9875_08.jpg\"\/<\/p>
 
 \"\u8be6\u60c5\u9875_09.jpg\"\/<\/p>
 
 <\/p>",
 "original_img": "http:\/\/shop.sdlinwang.com\/Public\/upload\/goods\/2017\/03-24\/58d4dcefc17d8.jpg",
 "is_real": "1",
 "is_on_sale": "1",
 "is_free_shipping": "0",
 "on_time": "1490422295",
 "sort": "48",
 "is_recommend": "1",
 "is_new": "1",
 "is_hot": "1",
 "last_update": "0",
 "goods_type": "35",
 "spec_type": "35",
 "give_integral": "0",
 "exchange_integral": "0",
 "suppliers_id": "0",
 "sales_sum": "0",
 "prom_type": "0",
 "prom_id": "0",
 "commission": "0.00",
 "spu": "",
 "sku": "",
 "shipping_area_ids": "",
 
 */

